package edu.zut.hb.software.together.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import edu.zut.hb.software.base.domain.BaseTreeEntity;
import lombok.Data;

@Table(name = "FriendGroup")
@Entity
@Data
@NamedQueries({ @NamedQuery(name = "FriendGroup.getRoot", query = "select g from Hospital g where g.parent is null")})
public class FriendGroup extends BaseTreeEntity<FriendGroup, Long> {

    
    /**
	 * 
	 */
	private static final long serialVersionUID = -5057957106592550571L;

	@Column(name = "name")
    private String name;

    @Column(name = "friendNumbers")
    private String friendNumbers;

    @Column(name = "friendName")
    private String friendName;

//    @OneToMany(mappedBy = "FriendGroup", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
//    Set<Department> departments;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

	public String getFriendNumbers() {
		return friendNumbers;
	}

	public void setFriendNumbers(String friendNumbers) {
		this.friendNumbers = friendNumbers;
	}

	public String getFriendName() {
		return friendName;
	}

	public void setFriendName(String friendName) {
		this.friendName = friendName;
	}

   

//    public Set<Friend> getFriend() {
//        return Friend;
//    }
//
//    public void setFriend(Set<Friend> friend) {
//        this.friend = friends;
//    }
   }
